<?
require("config.php");

$location_status .= " | Enquire";

$show_backnav = "customer_menu";

require($rela_path . "bin/country.php");

$menutype = 2;

if (NULL!=$action){

	$Query = "delete from $table where id = $id";

	myQuery($Query);


	header("location:" . $rela_path . "share/msg.php?v=24");

	exit();

}

if (!checkRecord($table,$id)){

	header("location:" . $rela_path . "share/msg.php?v=9002");
	exit();

}

$Query = "select 
	code,
	username,
	password,
		firstname,
		lastname,
		age,
	address,
	zip,
	city,
	country,
	tel,
	fax,
	email,
	website,
		profession,
		education,
		cardname,
	   cardtype,
	   cardno,
	   expiration_date,
	   status,
	   registration_date,
	   enrollment_date,
	ccs_followed  
from $table where id='$id' Limit 1";
$r = myQuery($Query);

	$Code=		$r[0][0];
	$Username=$r[0][1];
	$Password=$r[0][2];
		$Firstname=$r[0][3];
		$Lastname=$r[0][4];
	    $Age=$r[0][5];
	$Address=$r[0][6];
	$Zip=$r[0][7];
	$City=$r[0][8];
	$Country=$r[0][9];
	$Tel=$r[0][10];
	$Fax=$r[0][11];
	$Email=$r[0][12];
	$Website=$r[0][13];
		$Profession=$r[0][14];
		$Education=$r[0][15];
	    $Cardname=$r[0][16];
	    $Cardtype=$r[0][17];
	    $Cardno=$r[0][18];
	    $Expiration_date=$r[0][19];
	    $Status=$r[0][20];
		$Registration_date=$r[0][21];
	    $Enrollment_date=$r[0][22];
	$Followed=$r[0][23];

require($rela_path . "inc/header.php");

?>

<form action="" method="post" name="form1">  

<!--hidden filed-->
<input name="action" type="hidden" value="edit">
<input name="id" type="hidden" value="<?print($id)?>">





<br>
<table width="95%" border="0" align="center">
  <tr> 
    <td width="579" valign="top" height="127"> 
      <br>
      <table border="0" cellspacing="0" cellpadding="2">
        <tr> 
          <td class="tdheader">Code :</td>
          <td><?print($Code)?></td>
        </tr>
        <tr> 
          <td class="tdheader">Username :</td>
          <td><?print($Username)?></td>
        </tr>
        <tr> 
          <td class="tdheader">Password :</td>
          <td><?print($Password)?></td>
        </tr>

        <tr> 
          <td height="3" class="tdheader">First Name :</td>
          <td height="3"> <?echo $Firstname?>
              <font color="red">&nbsp;</font> <b></b></td>
        </tr>


        <tr> 
          <td height="3" class="tdheader">Last Name :</td>
          <td height="3"><?echo $Lastname?>
              <font color="red">&nbsp;</font> <b></b></td>
        </tr>


        <tr> 
          <td height="3" class="tdheader">Age :</td>
          <td height="3"> <?echo $Age?>
              <font color="red">&nbsp;</font> <b></b></td>
        </tr>
		
		<tr> 
          <td class="tdheader">Address :</td>
          <td><?print($Address)?></td>
        </tr>
        <tr> 
          <td class="tdheader">Zip Code :</td>
          <td><?print($Zip)?></td>
        </tr>
        <tr> 
          <td height="25" class="tdheader">City :</td>
          <td height="25"><?print($City)?></td>
        </tr>
        <tr> 
          <td class="tdheader">Country : </td>
          <td><?print($Country)?></td>
        </tr>
        <tr> 
          <td class="tdheader">Tel :</td>
          <td><?print($Tel)?></td>
        </tr>
        <tr> 
          <td class="tdheader">Fax :</td>
          <td><?print($Fax)?></td>
        </tr>
        <tr> 
          <td class="tdheader">Email :</td>
          <td><?print($Email)?></td>
        </tr>
        <tr> 
          <td class="tdheader">Website :</td>
          <td><?print($Website)?></td>
        </tr>
         <tr> 
          <td class="tdheader">Profession :</td>
          <td><?=$Profession?> 
          </td>
        </tr>
        <tr> 
          <td class="tdheader">Education :</td>
          <td> <?=$Education?>
          </td>
        </tr>
        <tr> 
          <td class="tdheader">Credit Card Name :</td>
          <td> <?=$Cardname?>
          </td>
        </tr>

        <tr> 
          <td class="tdheader">Credit Card Type :</td>
          <td> 
		  
<?=$Cardtype?>		  
		  
		  
          </td>
        </tr>

        <tr> 
          <td class="tdheader">Credit Card No. :</td>
          <td> <?=$Cardno?>  
          </td>
        </tr>

        <tr> 
          <td class="tdheader">Expiration Date :</td>
          <td> <?print($Expiration_date)?>
          </td>
        </tr>



        <tr> 
          <td class="tdheader">Status :</td>
          <td> 
		  
<?=$Status?>		  
		  
		  
          </td>
        </tr>


        <tr> 
          <td class="tdheader">Member Registration Date :</td>
          <td> 
		  
<?=$Registration_date?>	  
		  
		  
          </td>
        </tr>

        <tr> 
          <td class="tdheader">Latest Enrollment Date :</td>
          <td> 
		  
<?print($Enrollment_date)?>	  
		  
		  
          </td>
        </tr>
        <tr> 
          <td class="tdheader">Followed by :</td>
          <td><?print($Followed)?></td>
        </tr>
      </table>
    </td>

  </tr>
</table>
</form>
<br>
<br>
<br>
<?
require($rela_path . "inc/footer.php");
?>
